package com.xcyy.zjdxmjk.zjdxmjk.service.Imp;

import com.xcyy.zjdxmjk.zjdxmjk.entity.UserInfo;
import com.xcyy.zjdxmjk.zjdxmjk.repository.UserInfoRepository;
import com.xcyy.zjdxmjk.zjdxmjk.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoServiceImp implements UserInfoService {
    @Autowired
    private UserInfoRepository repository;

    @Override
    public UserInfo sava(UserInfo userInfo) {
        return repository.save(userInfo);
    }

    @Override
    public UserInfo findByUserid(String userid) {
        return repository.findByUserid(userid);
    }
}
